<template>
	<view>
		<view class="head-box">
			<view class="head-hidden-box common">
				<view class="head-left-box" @tap="back">
					<image src="../../../static/jingjie/return_h.png"></image>
					<view class="return-title">返回</view>
				</view>
				<view class="head-center-box">我的回应</view>
				<view class="head-right-box"></view>
			</view>
		</view>
		<view class="margin_box">
			
		</view>
		<view class="conent-box" v-for="(item,index) in huiyingLists" :key="index">
			<moreCurious :item="item" :isImage="isImage" :isVideo="isVideo" @toImgDetaile="toImgDetaile(id) " @toVideoDetaile="toVideoDetail"></moreCurious>
		</view>
	</view>
</template>

<script>
	import moreCurious from '../../../components/moreCurious.vue'
	export default {
		components: {
			moreCurious
		},
		data() {
			return {
				huiyingLists: [],
			};
		},
		onLoad() {
			this.getMyResponse()
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
			toImgDetaile(id) {
				uni.navigateTo({
					url: '../ImgDetaile/ImgDetaile?id=' + id,
				})
			},
			toVideoDetail(type, id) {
				uni.navigateTo({
					url: 'videoXiangQing/videoXiangQing?id=' + id,
				})
			},
			// 				if (isVideo) {
			// 					uni.navigateTo({
			// 						url: '../videoDetaile/videoDetaile?id='+id'
			// 					})
			// 				}


			getMyResponse() {
				var data = {
					user_id: uni.getStorageSync('user_id'),
					oper_id: uni.getStorageSync('user_id'),
					currentPage: 1
				}
				var me = this;
				this.myAjaxNew({
					model: 'news',
					controllerName: 'curiosityViewpoint',
					actionName: 'queryListPage',
					data: data,
					successBack: function(res) {
						console.log(res);
						me.huiyingLists = res.data.data;
					}
				})
			},
		}
	}
</script>

<style scoped>
	/*头部开始*/
	.head-box {
		width: 100%;
		height: 128upx;
		background-color: white;
		padding: 0 24upx;
		box-sizing: border-box;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 999;
		margin-bottom: 100upx;
	}

	.head-hidden-box {
		padding-top: 65upx;
		width: 100%;
	}

	.head-left-box {
		display: flex;
		align-items: center;
	}

	.head-left-box image {
		width: 21upx;
		height: 36upx;
	}
	.margin_box{
		height: 128upx;
	}

	.return-title {
		color: rgba(102, 102, 102, 1);
		font-size: 32upx;
		margin-left: 10upx;
	}

	.head-center-box {
		color: rgba(51, 51, 51, 1);
		font-size: 36upx;
	}

	.head-right-box {
		width: 80upx;
	}

	/*头部结束*/
	.conent-box {
		width: 100%;
		margin-top: 20upx;
	}
</style>
